import Vue from 'vue';
import Vuex from 'vuex';
import cart from './cart.js';
import user from './user.js';
Vue.use(Vuex);

// 创建store
const store = new Vuex.Store({
  state: {
    msg: 'vuex 导入了'
  },
  modules: {
    m_cart: cart,
    m_user: user
  }
});

export default store;
